package com.jm.smsgateway.controller;


import jakarta.annotation.Resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * @Author:JianWu
 * @Date: 2025/1/20  17:43
 */
@RestController
public class TestController {

    @Autowired
    private ThreadPoolExecutor cmppSubmitPool;

    @GetMapping("/test")
    public String test(){
        cmppSubmitPool.execute(()->{
            System.out.println(Thread.currentThread().getName());
        });
        return "success";
    }
}
